package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.UUID;

/**
 * 商品品牌实体类
 */
@Table(name = "c_brand")
public class Brand implements Serializable{

    @Id
    @Column(name = "brand_id", length = 64)
    private String brandId = UUID.randomUUID().toString();//主键

    @Column(name = "brand_name", length = 20)
    private String brandName;//品牌名称

    @Column(name = "brand_logo", length = 60)
    private String brandLogo;//品牌logo

    @Column(name = "brand_sort", length = 11)
    private Integer brandSort=0;//排序

    @Column(name = "brand_type", length = 11)
    private Integer brandType=0;// 0 普通品牌   1 大牌

    @Column(name = "brand_describe")
    private String brandDescribe;//描述

    @Column(name = "brand_status", length = 11)
    private Integer brandStatus=0;//状态值：启用--0，-1禁用

    @Column(name = "brand_del", length = 11)
    private Integer brandDel=0;//逻辑删除：0默认，-1删除

    @Column(name = "create_time", length = 20)
    private String createTime;//创建时间

    @Column(name = "del_time", length = 20)
    private String delTime;//删除时间   

    @Column(name = "update_time", length = 20)
    private String updateTime;//修改时间

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId == null ? null : brandId.trim();
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName == null ? null : brandName.trim();
    }

    public String getBrandLogo() {
        return brandLogo;
    }

    public void setBrandLogo(String brandLogo) {
        this.brandLogo = brandLogo == null ? null : brandLogo.trim();
    }

    public Integer getBrandSort() {
        return brandSort;
    }

    public void setBrandSort(Integer brandSort) {
        this.brandSort = brandSort;
    }

    public Integer getBrandType() {
        return brandType;
    }

    public void setBrandType(Integer brandType) {
        this.brandType = brandType;
    }

    public String getBrandDescribe() {
        return brandDescribe;
    }

    public void setBrandDescribe(String brandDescribe) {
        this.brandDescribe = brandDescribe == null ? null : brandDescribe.trim();
    }

    public Integer getBrandStatus() {
        return brandStatus;
    }

    public void setBrandStatus(Integer brandStatus) {
        this.brandStatus = brandStatus;
    }

    public Integer getBrandDel() {
        return brandDel;
    }

    public void setBrandDel(Integer brandDel) {
        this.brandDel = brandDel;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}